import AsyncValidator from 'async-validator'
export default {
    myValidate(ruler,model){
        var validatorRuler = new Promise((resolve,reject)=>{
            var validator = new AsyncValidator(ruler)
            validator.validate(model,(e,f)=>{
                resolve(e)
            })
        })
        return validatorRuler
    }
}




